package com.xinyue.game.center.common;

/**
 * @Author 王广帅
 * @Date 2021/5/10 23:25
 */
public abstract class AbstractGameCenterServerController {

    protected ServerResponseEntity success(Object value) {
        ServerResponseEntity serverResponseEntity = new ServerResponseEntity(0, value);
        return serverResponseEntity;
    }

    protected ServerResponseEntity error(ServerErrorCode errorCode) {
        ServerResponseEntity serverResponseEntity = new ServerResponseEntity(errorCode);
        return serverResponseEntity;
    }
}
